package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.FintechUserBaseInfo;
import com.appkubes.mall.core.po.FintechUserBaseInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface FintechUserBaseInfoMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_base_info
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechUserBaseInfoSqlProvider.class, method="countByExample")
    long countByExample(FintechUserBaseInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_base_info
     *
     * @mbg.generated
     */
    @DeleteProvider(type=FintechUserBaseInfoSqlProvider.class, method="deleteByExample")
    int deleteByExample(FintechUserBaseInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_base_info
     *
     * @mbg.generated
     */
    @Delete({
        "delete from fintech_user_base_info",
        "where user_key = #{userKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String userKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_base_info
     *
     * @mbg.generated
     */
    @Insert({
        "insert into fintech_user_base_info (user_key, real_name, ",
        "sex, age, identity_num, ",
        "phone, ref_user_id, ",
        "ref_user_name, ref_user_phone, ",
        "ref_channel_id, ref_channel_name, ",
        "ref_group_name, ref_group_id, ",
        "living_province, living_city, ",
        "living_district, living_detail, ",
        "living_type, housing, ",
        "is_new, education, ",
        "email, marriage, ",
        "user_source, user_device, ",
        "is_delete, creator, ",
        "create_time, updater, ",
        "update_time, version, ",
        "app_key)",
        "values (#{userKey,jdbcType=VARCHAR}, #{realName,jdbcType=VARCHAR}, ",
        "#{sex,jdbcType=INTEGER}, #{age,jdbcType=INTEGER}, #{identityNum,jdbcType=VARCHAR}, ",
        "#{phone,jdbcType=VARCHAR}, #{refUserId,jdbcType=VARCHAR}, ",
        "#{refUserName,jdbcType=VARCHAR}, #{refUserPhone,jdbcType=VARCHAR}, ",
        "#{refChannelId,jdbcType=VARCHAR}, #{refChannelName,jdbcType=VARCHAR}, ",
        "#{refGroupName,jdbcType=VARCHAR}, #{refGroupId,jdbcType=VARCHAR}, ",
        "#{livingProvince,jdbcType=VARCHAR}, #{livingCity,jdbcType=VARCHAR}, ",
        "#{livingDistrict,jdbcType=VARCHAR}, #{livingDetail,jdbcType=VARCHAR}, ",
        "#{livingType,jdbcType=VARCHAR}, #{housing,jdbcType=VARCHAR}, ",
        "#{isNew,jdbcType=INTEGER}, #{education,jdbcType=VARCHAR}, ",
        "#{email,jdbcType=VARCHAR}, #{marriage,jdbcType=VARCHAR}, ",
        "#{userSource,jdbcType=VARCHAR}, #{userDevice,jdbcType=VARCHAR}, ",
        "#{isDelete,jdbcType=TINYINT}, #{creator,jdbcType=VARCHAR}, ",
        "#{createTime,jdbcType=TIMESTAMP}, #{updater,jdbcType=VARCHAR}, ",
        "#{updateTime,jdbcType=TIMESTAMP}, #{version,jdbcType=VARCHAR}, ",
        "#{appKey,jdbcType=VARCHAR})"
    })
    int insert(FintechUserBaseInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_base_info
     *
     * @mbg.generated
     */
    @InsertProvider(type=FintechUserBaseInfoSqlProvider.class, method="insertSelective")
    int insertSelective(FintechUserBaseInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_base_info
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechUserBaseInfoSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="real_name", property="realName", jdbcType=JdbcType.VARCHAR),
        @Result(column="sex", property="sex", jdbcType=JdbcType.INTEGER),
        @Result(column="age", property="age", jdbcType=JdbcType.INTEGER),
        @Result(column="identity_num", property="identityNum", jdbcType=JdbcType.VARCHAR),
        @Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_user_id", property="refUserId", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_user_name", property="refUserName", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_user_phone", property="refUserPhone", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_channel_id", property="refChannelId", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_channel_name", property="refChannelName", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_group_name", property="refGroupName", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_group_id", property="refGroupId", jdbcType=JdbcType.VARCHAR),
        @Result(column="living_province", property="livingProvince", jdbcType=JdbcType.VARCHAR),
        @Result(column="living_city", property="livingCity", jdbcType=JdbcType.VARCHAR),
        @Result(column="living_district", property="livingDistrict", jdbcType=JdbcType.VARCHAR),
        @Result(column="living_detail", property="livingDetail", jdbcType=JdbcType.VARCHAR),
        @Result(column="living_type", property="livingType", jdbcType=JdbcType.VARCHAR),
        @Result(column="housing", property="housing", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_new", property="isNew", jdbcType=JdbcType.INTEGER),
        @Result(column="education", property="education", jdbcType=JdbcType.VARCHAR),
        @Result(column="email", property="email", jdbcType=JdbcType.VARCHAR),
        @Result(column="marriage", property="marriage", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_source", property="userSource", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_device", property="userDevice", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_delete", property="isDelete", jdbcType=JdbcType.TINYINT),
        @Result(column="creator", property="creator", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="updater", property="updater", jdbcType=JdbcType.VARCHAR),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="version", property="version", jdbcType=JdbcType.VARCHAR),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR)
    })
    List<FintechUserBaseInfo> selectByExampleWithRowbounds(FintechUserBaseInfoExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_base_info
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechUserBaseInfoSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="real_name", property="realName", jdbcType=JdbcType.VARCHAR),
        @Result(column="sex", property="sex", jdbcType=JdbcType.INTEGER),
        @Result(column="age", property="age", jdbcType=JdbcType.INTEGER),
        @Result(column="identity_num", property="identityNum", jdbcType=JdbcType.VARCHAR),
        @Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_user_id", property="refUserId", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_user_name", property="refUserName", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_user_phone", property="refUserPhone", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_channel_id", property="refChannelId", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_channel_name", property="refChannelName", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_group_name", property="refGroupName", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_group_id", property="refGroupId", jdbcType=JdbcType.VARCHAR),
        @Result(column="living_province", property="livingProvince", jdbcType=JdbcType.VARCHAR),
        @Result(column="living_city", property="livingCity", jdbcType=JdbcType.VARCHAR),
        @Result(column="living_district", property="livingDistrict", jdbcType=JdbcType.VARCHAR),
        @Result(column="living_detail", property="livingDetail", jdbcType=JdbcType.VARCHAR),
        @Result(column="living_type", property="livingType", jdbcType=JdbcType.VARCHAR),
        @Result(column="housing", property="housing", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_new", property="isNew", jdbcType=JdbcType.INTEGER),
        @Result(column="education", property="education", jdbcType=JdbcType.VARCHAR),
        @Result(column="email", property="email", jdbcType=JdbcType.VARCHAR),
        @Result(column="marriage", property="marriage", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_source", property="userSource", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_device", property="userDevice", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_delete", property="isDelete", jdbcType=JdbcType.TINYINT),
        @Result(column="creator", property="creator", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="updater", property="updater", jdbcType=JdbcType.VARCHAR),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="version", property="version", jdbcType=JdbcType.VARCHAR),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR)
    })
    List<FintechUserBaseInfo> selectByExample(FintechUserBaseInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_base_info
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "user_key, real_name, sex, age, identity_num, phone, ref_user_id, ref_user_name, ",
        "ref_user_phone, ref_channel_id, ref_channel_name, ref_group_name, ref_group_id, ",
        "living_province, living_city, living_district, living_detail, living_type, housing, ",
        "is_new, education, email, marriage, user_source, user_device, is_delete, creator, ",
        "create_time, updater, update_time, version, app_key",
        "from fintech_user_base_info",
        "where user_key = #{userKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="real_name", property="realName", jdbcType=JdbcType.VARCHAR),
        @Result(column="sex", property="sex", jdbcType=JdbcType.INTEGER),
        @Result(column="age", property="age", jdbcType=JdbcType.INTEGER),
        @Result(column="identity_num", property="identityNum", jdbcType=JdbcType.VARCHAR),
        @Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_user_id", property="refUserId", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_user_name", property="refUserName", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_user_phone", property="refUserPhone", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_channel_id", property="refChannelId", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_channel_name", property="refChannelName", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_group_name", property="refGroupName", jdbcType=JdbcType.VARCHAR),
        @Result(column="ref_group_id", property="refGroupId", jdbcType=JdbcType.VARCHAR),
        @Result(column="living_province", property="livingProvince", jdbcType=JdbcType.VARCHAR),
        @Result(column="living_city", property="livingCity", jdbcType=JdbcType.VARCHAR),
        @Result(column="living_district", property="livingDistrict", jdbcType=JdbcType.VARCHAR),
        @Result(column="living_detail", property="livingDetail", jdbcType=JdbcType.VARCHAR),
        @Result(column="living_type", property="livingType", jdbcType=JdbcType.VARCHAR),
        @Result(column="housing", property="housing", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_new", property="isNew", jdbcType=JdbcType.INTEGER),
        @Result(column="education", property="education", jdbcType=JdbcType.VARCHAR),
        @Result(column="email", property="email", jdbcType=JdbcType.VARCHAR),
        @Result(column="marriage", property="marriage", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_source", property="userSource", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_device", property="userDevice", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_delete", property="isDelete", jdbcType=JdbcType.TINYINT),
        @Result(column="creator", property="creator", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="updater", property="updater", jdbcType=JdbcType.VARCHAR),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="version", property="version", jdbcType=JdbcType.VARCHAR),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR)
    })
    FintechUserBaseInfo selectByPrimaryKey(String userKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_base_info
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechUserBaseInfoSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") FintechUserBaseInfo record, @Param("example") FintechUserBaseInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_base_info
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechUserBaseInfoSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") FintechUserBaseInfo record, @Param("example") FintechUserBaseInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_base_info
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechUserBaseInfoSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(FintechUserBaseInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_base_info
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_user_base_info",
        "set real_name = #{realName,jdbcType=VARCHAR},",
          "sex = #{sex,jdbcType=INTEGER},",
          "age = #{age,jdbcType=INTEGER},",
          "identity_num = #{identityNum,jdbcType=VARCHAR},",
          "phone = #{phone,jdbcType=VARCHAR},",
          "ref_user_id = #{refUserId,jdbcType=VARCHAR},",
          "ref_user_name = #{refUserName,jdbcType=VARCHAR},",
          "ref_user_phone = #{refUserPhone,jdbcType=VARCHAR},",
          "ref_channel_id = #{refChannelId,jdbcType=VARCHAR},",
          "ref_channel_name = #{refChannelName,jdbcType=VARCHAR},",
          "ref_group_name = #{refGroupName,jdbcType=VARCHAR},",
          "ref_group_id = #{refGroupId,jdbcType=VARCHAR},",
          "living_province = #{livingProvince,jdbcType=VARCHAR},",
          "living_city = #{livingCity,jdbcType=VARCHAR},",
          "living_district = #{livingDistrict,jdbcType=VARCHAR},",
          "living_detail = #{livingDetail,jdbcType=VARCHAR},",
          "living_type = #{livingType,jdbcType=VARCHAR},",
          "housing = #{housing,jdbcType=VARCHAR},",
          "is_new = #{isNew,jdbcType=INTEGER},",
          "education = #{education,jdbcType=VARCHAR},",
          "email = #{email,jdbcType=VARCHAR},",
          "marriage = #{marriage,jdbcType=VARCHAR},",
          "user_source = #{userSource,jdbcType=VARCHAR},",
          "user_device = #{userDevice,jdbcType=VARCHAR},",
          "is_delete = #{isDelete,jdbcType=TINYINT},",
          "creator = #{creator,jdbcType=VARCHAR},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "updater = #{updater,jdbcType=VARCHAR},",
          "update_time = #{updateTime,jdbcType=TIMESTAMP},",
          "version = #{version,jdbcType=VARCHAR},",
          "app_key = #{appKey,jdbcType=VARCHAR}",
        "where user_key = #{userKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(FintechUserBaseInfo record);
}